package com.iocup.keybastion.authentication.impl;


import com.iocup.keybastion.authentication.RefreshToken;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 *  默认刷新token
 *
 * @author xyjxust
 * @create 2020/3/9 10:55
 **/
@Getter
@Builder
@Setter
public class DefaultRefreshToken implements RefreshToken {

    private String token;
    /**
     * 过期时间
     */
    private Date expiration;

    @Override
    public RefreshToken setToken(String token) {
        this.token = token;
        return this;
    }
    @Override
    public RefreshToken setExpiration(Date expiration) {
        this.expiration = expiration;
        return this;
    }
}
